package com.apple;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.apple.system.service.mapper")
public class SwDemoApplication {
	public static final SpringApplication application = new SpringApplication(SwDemoApplication.class);
	public static ConfigurableApplicationContext context;

	public static void main(String[] args) {

		//关闭无头模式，允许gui启动
		application.setHeadless(false);
		//不启动web容器，比如tomcat
		application.setWebApplicationType(WebApplicationType.NONE);

		context=application.run(args);
	}
}
